﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Payment.aspx.cs" Inherits="Payment" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    
    <style>
    body
    {
        color: #0066CC;
    }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <center>
    <div style="text-align: left; width: 280px;" >
   <br />
    <table width="280" border="0" cellspacing="2" cellpadding="0">
                      <tr>
                        <td colspan="2" align="center" ><b>INFORMACIÓN DE SU PAGO</b><br />
                          </td>
                        </tr>
                      <tr>
                        <td align="left">Nombre:</td>
                        <td>
                            <asp:TextBox ID="txtnombre" runat="server"  Enabled="False"></asp:TextBox></td>
                      </tr>
                      <tr>
                        <td width="100" align="left" >Documento:</td>
                        <td>
                            <asp:TextBox ID="txtdocumento" runat="server"  Enabled="False"></asp:TextBox></td>
                      </tr>
                      <tr>
                        <td width="100" align="left">Teléfono:</td>
                        <td>
                            <asp:TextBox ID="txttelefono" runat="server" ></asp:TextBox></td>
                      </tr>
                      <tr>
                        <td width="100" align="left">Ciudad:</td>
                        <td>
                            <asp:TextBox ID="txtciudad" runat="server" ></asp:TextBox></td>
                      </tr>
                      <tr>
                        <td width="100" align="left">Email:</td>
                        <td>
                            <asp:TextBox ID="txtemail" runat="server" ></asp:TextBox></td>
                      </tr>
                      <tr>
                        <td width="100" align="left">Factura Nº:</td>
                        <td>
                            <asp:TextBox ID="txtfactura" runat="server"  Enabled="False"></asp:TextBox></td>
                      </tr>
                      <tr>
                        <td width="100" align="left">Medio de pago:</td>
                        <td>
                            <asp:DropDownList ID="ddlmedio" runat="server"  Width="150px">
                                <asp:ListItem Value="0">::: Seleccione :::</asp:ListItem>
                                <asp:ListItem Value="2">Tarjeta de cr&#233;dito</asp:ListItem>
                                <asp:ListItem Value="4">Cuenta ahorro o corriente</asp:ListItem>
                            </asp:DropDownList></td>
                      </tr>
                      <tr>
                        <td width="100" align="left">SubTotal</td>
                        <td>
                            <asp:TextBox ID="txtSubtotal" runat="server"  Enabled="False"></asp:TextBox></td>
                      </tr>
                      <tr>
                        <td width="100" align="left">IVA</td>
                        <td>
                            <asp:TextBox ID="txtIva" runat="server"  Enabled="False"></asp:TextBox></td>
                      </tr>
                      <tr>
                        <td width="100" align="left">Total</td>
                        <td>
                            <asp:TextBox ID="txtvalor" runat="server"  Enabled="False"></asp:TextBox></td>
                      </tr>
                      <tr>
                        <td width="100" align="left">&nbsp;</td>
                        <td>
                            &nbsp;</td>
                      </tr>
                      </table>
                
    </div>
        </center>
    </form>
    <center>
     <form id="frmPago" name="frmPago" method="post" action="https://gateway2.pagosonline.net/apps/gateway/index.html">
							            <input name="usuarioId" type="hidden"  value="<%=10194%>">
							            <input name="refVenta" type="hidden"  value="<%= Request.Params["usrNombre"].ToString() %>">
							            <input name="descripcion" type="hidden"  value="<%= "Pago de factura: " + txtfactura.Text %>">
							            <input name="valor" type="hidden"  value="<%= txtvalor.Text %>">
							            <input name="iva" type="hidden"  value="<%= txtIva.Text %>">
							            <input name="baseDevolucionIva" type="hidden"  value="0">
							            <input name="moneda" type="hidden"  value="COP">
							            <input name="emailComprador" type="hidden"  value="<%= txtemail.Text %>">
							            <input name="firma" type="hidden"  value="<%= GetMd5Hash("1061420dbeb" + "~" + "10194" + "~" + Request.Params["usrNombre"].ToString()+ "~" +  txtvalor.Text  + "~" + "COP") %>">
							            <input name="prueba" type="hidden"  value="0">
							            <input name="extra1" type="hidden"  value="<%="Nombre: " + Request.Params["usrNombre"].ToString() + " Documento: " + Request.Params["Nit"].ToString() %>">
							            <input name="extra2" type="hidden"  value="<%="Telefono: " + txttelefono.Text + " Ciudad: " + txtciudad.Text %>">
							            <input name="plantilla" type="hidden"  value="axesat">
							            <%--<input name="tiposMediosDePago" type="hidden" value="<%=tiposMediosDePago%>">--%>
							            <input name="url_respuesta" type="hidden"  value="http://www.axesat.com/SERVICIOALCLIENTE/PAGOSCONFIRMACION/tabid/153/Default.aspx">
							            <input type="submit" value="Confirmar pago »">
							            </form>
							            </center>
</body>
</html>
